//
//  GWSettingCell.h
//  CROSBY
//
//  Created by 王华磊 on 2017/10/3.
//  Copyright © 2017年 Haley. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, AccessViewType) {
    AccessViewTypeNone,
    AccessViewTypeSwitch,
    AccessViewTypeCheck,
    AccessViewTypeLabel
};

@class GWSettingCell;
@protocol GWSettingCellDelegate <NSObject>

- (void)switchChange:(UISwitch *)switchView onCell:(GWSettingCell *)cell;

@end


@interface GWSettingCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UISwitch *switchView;
@property (weak, nonatomic) IBOutlet UIImageView *arrowImageView;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleLabelWidthContant;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *contentLabelWidthContant;

@property (nonatomic, weak) id<GWSettingCellDelegate>  delegate;

@property (nonatomic, strong) NSDictionary  *dict;


+ (instancetype)cellWithTableView:(UITableView *)tableView;

@end
